<!---
	Copyright 2010 Edward Trudeau, Jeremy Battle
    This software is freely available under the MIT License: http://www.opensource.org/licenses/mit-license.php
    http://ayc.googlecode.com
    
--->

<!--- formatter.cfm
	custom tag manages all aspects of page formatting
	created 23 July 07 EJT
	
	NOTES:
	Must be called with an end tag
	May be called with attributes that will determine styles, layouts, etc.
	
	 --->
	 
	 <cfparam name="attributes.baseURL" default="#request.config.baseURL#" />
	 <cfparam name="attributes.stylelist" default="#attributes.baseURL#/styles/style.css" />
	 <cfparam name="attributes.scriptpath" default="/scripts" />


<cfif thisTag.hasEndTag AND thisTag.executionMode EQ "start">
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<link rel="stylesheet" href="<cfoutput>#attributes.stylelist#</cfoutput>" type="text/css" />
		<title>Course Tools at The Catholic University of America</title>
	</head>
	<body>
	
	<div class="content">
		<div class="logo">
			<h1><a href="#" title="Centralized Internet Content">Weclome to Course Tools</a></h1>
		</div>
		
		<div class="topbar">
			 <ul>
				<li><a href="#" accesskey="i">Internet</a></li>
				<li class="active">People</li>
				<li><a href="#" accesskey="m">Music</a></li>
				<li><a href="#" accesskey="p">Pictures</a></li>
				<li><a href="#" accesskey="s">Services</a></li>
				<li><a href="#" accesskey="r">Products</a></li>
			</ul>
			<form method="post" action="?" class="search_form">
				<input type="text" name="search" class="search" /> <input type="submit" value="Search" class="button" />
			</form>
		</div>
<cfelseif thisTag.hasEndTag AND thisTag.executionMode EQ "end">
			<div class="footer">
				<p><a href="#">RSS Feed</a> | <a href="#">Contact</a> | <a href="#">Accessibility</a> | <a href="#">Products</a> | <a href="#">Disclaimer</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> and <a href="http://validator.w3.org/check?uri=referer">XHTML</a><br />
				&copy; Copyright 2006 Internet Center, Design: Luka Cvrk - <a href="http://www.solucija.com/" title="What's your solution?">Solucija</a></p>
			</div>
		</div>
	</body>
	</html>
<cfelse>
	<cfthrow type="Formatter.noEndTag" message="Formatter custom tag was called without an end tag.">
</cfif>

